package PMIRPSystem;


/**
 * Generated from IDL interface "PMIRP".
 *
 * @author JacORB IDL compiler V 2.3.0, 17-Feb-2007
 * @version generated at 2013-5-20 22:07:19
 */

public class _PMIRPStub
	extends org.omg.CORBA.portable.ObjectImpl
	implements PMIRPSystem.PMIRP
{
	private String[] ids = {"IDL:PMIRPSystem/PMIRP:1.0"};
	public String[] _ids()
	{
		return ids;
	}

	public final static java.lang.Class _opsClass = PMIRPSystem.PMIRPOperations.class;
	public PMIRPConstDefs.Result suspend_measurement_job(int job_id) throws PMIRPSystem.JobAlreadySuspended,PMIRPSystem.UnknownJob,ManagedGenericIRPSystem.OperationNotSupported,PMIRPSystem.SuspendMeasurementJob
	{
		while(true)
		{
		if(! this._is_local())
		{
			org.omg.CORBA.portable.InputStream _is = null;
			try
			{
				org.omg.CORBA.portable.OutputStream _os = _request( "suspend_measurement_job", true);
				_os.write_ulong(job_id);
				_is = _invoke(_os);
				PMIRPConstDefs.Result _result = PMIRPConstDefs.ResultHelper.read(_is);
				return _result;
			}
			catch( org.omg.CORBA.portable.RemarshalException _rx ){}
			catch( org.omg.CORBA.portable.ApplicationException _ax )
			{
				String _id = _ax.getId();
				if( _id.equals("IDL:PMIRPSystem/JobAlreadySuspended:1.0"))
				{
					throw PMIRPSystem.JobAlreadySuspendedHelper.read(_ax.getInputStream());
				}
				else if( _id.equals("IDL:PMIRPSystem/UnknownJob:1.0"))
				{
					throw PMIRPSystem.UnknownJobHelper.read(_ax.getInputStream());
				}
				else if( _id.equals("IDL:ManagedGenericIRPSystem/OperationNotSupported:1.0"))
				{
					throw ManagedGenericIRPSystem.OperationNotSupportedHelper.read(_ax.getInputStream());
				}
				else if( _id.equals("IDL:PMIRPSystem/SuspendMeasurementJob:1.0"))
				{
					throw PMIRPSystem.SuspendMeasurementJobHelper.read(_ax.getInputStream());
				}
				throw new RuntimeException("Unexpected exception " + _id );
			}
			finally
			{
				this._releaseReply(_is);
			}
		}
		else
		{
			org.omg.CORBA.portable.ServantObject _so = _servant_preinvoke( "suspend_measurement_job", _opsClass );
			if( _so == null )
				throw new org.omg.CORBA.UNKNOWN("local invocations not supported!");
			PMIRPOperations _localServant = (PMIRPOperations)_so.servant;
			PMIRPConstDefs.Result _result;
			try
			{
				_result = _localServant.suspend_measurement_job(job_id);
			}
			finally
			{
				_servant_postinvoke(_so);
			}
			return _result;
		}

		}

	}

	public PMIRPConstDefs.Result resume_measurement_job(int job_id) throws PMIRPSystem.JobIsNotSuspended,PMIRPSystem.ResumeMeasurementJob,PMIRPSystem.HighWorkLoad,PMIRPSystem.UnknownJob,ManagedGenericIRPSystem.OperationNotSupported
	{
		while(true)
		{
		if(! this._is_local())
		{
			org.omg.CORBA.portable.InputStream _is = null;
			try
			{
				org.omg.CORBA.portable.OutputStream _os = _request( "resume_measurement_job", true);
				_os.write_ulong(job_id);
				_is = _invoke(_os);
				PMIRPConstDefs.Result _result = PMIRPConstDefs.ResultHelper.read(_is);
				return _result;
			}
			catch( org.omg.CORBA.portable.RemarshalException _rx ){}
			catch( org.omg.CORBA.portable.ApplicationException _ax )
			{
				String _id = _ax.getId();
				if( _id.equals("IDL:PMIRPSystem/JobIsNotSuspended:1.0"))
				{
					throw PMIRPSystem.JobIsNotSuspendedHelper.read(_ax.getInputStream());
				}
				else if( _id.equals("IDL:PMIRPSystem/ResumeMeasurementJob:1.0"))
				{
					throw PMIRPSystem.ResumeMeasurementJobHelper.read(_ax.getInputStream());
				}
				else if( _id.equals("IDL:PMIRPSystem/HighWorkLoad:1.0"))
				{
					throw PMIRPSystem.HighWorkLoadHelper.read(_ax.getInputStream());
				}
				else if( _id.equals("IDL:PMIRPSystem/UnknownJob:1.0"))
				{
					throw PMIRPSystem.UnknownJobHelper.read(_ax.getInputStream());
				}
				else if( _id.equals("IDL:ManagedGenericIRPSystem/OperationNotSupported:1.0"))
				{
					throw ManagedGenericIRPSystem.OperationNotSupportedHelper.read(_ax.getInputStream());
				}
				throw new RuntimeException("Unexpected exception " + _id );
			}
			finally
			{
				this._releaseReply(_is);
			}
		}
		else
		{
			org.omg.CORBA.portable.ServantObject _so = _servant_preinvoke( "resume_measurement_job", _opsClass );
			if( _so == null )
				throw new org.omg.CORBA.UNKNOWN("local invocations not supported!");
			PMIRPOperations _localServant = (PMIRPOperations)_so.servant;
			PMIRPConstDefs.Result _result;
			try
			{
				_result = _localServant.resume_measurement_job(job_id);
			}
			finally
			{
				_servant_postinvoke(_so);
			}
			return _result;
		}

		}

	}

	public java.lang.String iRPId()
	{
		while(true)
		{
		if(! this._is_local())
		{
			org.omg.CORBA.portable.InputStream _is = null;
			try
			{
				org.omg.CORBA.portable.OutputStream _os = _request("_get_iRPId",true);
				_is = _invoke(_os);
				return _is.read_string();
			}
			catch( org.omg.CORBA.portable.RemarshalException _rx ){}
			catch( org.omg.CORBA.portable.ApplicationException _ax )
			{
				String _id = _ax.getId();
				throw new RuntimeException("Unexpected exception " + _id );
			}
			finally
			{
				this._releaseReply(_is);
			}
		}

		else
		{
		org.omg.CORBA.portable.ServantObject _so = _servant_preinvoke( "_get_iRPId", _opsClass);
		if( _so == null )
			throw new org.omg.CORBA.UNKNOWN("local invocations not supported!");
			PMIRPOperations _localServant = (PMIRPOperations)_so.servant;
			java.lang.String _result;
		try
		{
			_result = _localServant.iRPId();
		}
		finally
		{
			_servant_postinvoke(_so);
		}
		return _result;
		}
		}

	}

	public java.lang.String[] get_pm_irp_versions() throws PMIRPSystem.GetPMIRPVersions
	{
		while(true)
		{
		if(! this._is_local())
		{
			org.omg.CORBA.portable.InputStream _is = null;
			try
			{
				org.omg.CORBA.portable.OutputStream _os = _request( "get_pm_irp_versions", true);
				_is = _invoke(_os);
				java.lang.String[] _result = ManagedGenericIRPConstDefs.VersionNumberSetHelper.read(_is);
				return _result;
			}
			catch( org.omg.CORBA.portable.RemarshalException _rx ){}
			catch( org.omg.CORBA.portable.ApplicationException _ax )
			{
				String _id = _ax.getId();
				if( _id.equals("IDL:PMIRPSystem/GetPMIRPVersions:1.0"))
				{
					throw PMIRPSystem.GetPMIRPVersionsHelper.read(_ax.getInputStream());
				}
				throw new RuntimeException("Unexpected exception " + _id );
			}
			finally
			{
				this._releaseReply(_is);
			}
		}
		else
		{
			org.omg.CORBA.portable.ServantObject _so = _servant_preinvoke( "get_pm_irp_versions", _opsClass );
			if( _so == null )
				throw new org.omg.CORBA.UNKNOWN("local invocations not supported!");
			PMIRPOperations _localServant = (PMIRPOperations)_so.servant;
			java.lang.String[] _result;
			try
			{
				_result = _localServant.get_pm_irp_versions();
			}
			finally
			{
				_servant_postinvoke(_so);
			}
			return _result;
		}

		}

	}

	public PMIRPConstDefs.Result resume_threshold_monitor(int monitor_id) throws PMIRPSystem.UnknownThresholdMonitor,ManagedGenericIRPSystem.OperationNotSupported,PMIRPSystem.ThresholdMonitorIsNotSuspended,PMIRPSystem.ResumeThresholdMonitor
	{
		while(true)
		{
		if(! this._is_local())
		{
			org.omg.CORBA.portable.InputStream _is = null;
			try
			{
				org.omg.CORBA.portable.OutputStream _os = _request( "resume_threshold_monitor", true);
				_os.write_ulong(monitor_id);
				_is = _invoke(_os);
				PMIRPConstDefs.Result _result = PMIRPConstDefs.ResultHelper.read(_is);
				return _result;
			}
			catch( org.omg.CORBA.portable.RemarshalException _rx ){}
			catch( org.omg.CORBA.portable.ApplicationException _ax )
			{
				String _id = _ax.getId();
				if( _id.equals("IDL:PMIRPSystem/UnknownThresholdMonitor:1.0"))
				{
					throw PMIRPSystem.UnknownThresholdMonitorHelper.read(_ax.getInputStream());
				}
				else if( _id.equals("IDL:ManagedGenericIRPSystem/OperationNotSupported:1.0"))
				{
					throw ManagedGenericIRPSystem.OperationNotSupportedHelper.read(_ax.getInputStream());
				}
				else if( _id.equals("IDL:PMIRPSystem/ThresholdMonitorIsNotSuspended:1.0"))
				{
					throw PMIRPSystem.ThresholdMonitorIsNotSuspendedHelper.read(_ax.getInputStream());
				}
				else if( _id.equals("IDL:PMIRPSystem/ResumeThresholdMonitor:1.0"))
				{
					throw PMIRPSystem.ResumeThresholdMonitorHelper.read(_ax.getInputStream());
				}
				throw new RuntimeException("Unexpected exception " + _id );
			}
			finally
			{
				this._releaseReply(_is);
			}
		}
		else
		{
			org.omg.CORBA.portable.ServantObject _so = _servant_preinvoke( "resume_threshold_monitor", _opsClass );
			if( _so == null )
				throw new org.omg.CORBA.UNKNOWN("local invocations not supported!");
			PMIRPOperations _localServant = (PMIRPOperations)_so.servant;
			PMIRPConstDefs.Result _result;
			try
			{
				_result = _localServant.resume_threshold_monitor(monitor_id);
			}
			finally
			{
				_servant_postinvoke(_so);
			}
			return _result;
		}

		}

	}

	public PMIRPConstDefs.Result list_measurement_jobs(int[] job_list_d, PMIRPConstDefs.JobInfoListHolder job_info_list) throws ManagedGenericIRPSystem.InvalidParameter,PMIRPSystem.ListMeasurementJobs
	{
		while(true)
		{
		if(! this._is_local())
		{
			org.omg.CORBA.portable.InputStream _is = null;
			try
			{
				org.omg.CORBA.portable.OutputStream _os = _request( "list_measurement_jobs", true);
				PMIRPConstDefs.JobIdListHelper.write(_os,job_list_d);
				_is = _invoke(_os);
				PMIRPConstDefs.Result _result = PMIRPConstDefs.ResultHelper.read(_is);
				job_info_list.value = PMIRPConstDefs.JobInfoListHelper.read(_is);
				return _result;
			}
			catch( org.omg.CORBA.portable.RemarshalException _rx ){}
			catch( org.omg.CORBA.portable.ApplicationException _ax )
			{
				String _id = _ax.getId();
				if( _id.equals("IDL:ManagedGenericIRPSystem/InvalidParameter:1.0"))
				{
					throw ManagedGenericIRPSystem.InvalidParameterHelper.read(_ax.getInputStream());
				}
				else if( _id.equals("IDL:PMIRPSystem/ListMeasurementJobs:1.0"))
				{
					throw PMIRPSystem.ListMeasurementJobsHelper.read(_ax.getInputStream());
				}
				throw new RuntimeException("Unexpected exception " + _id );
			}
			finally
			{
				this._releaseReply(_is);
			}
		}
		else
		{
			org.omg.CORBA.portable.ServantObject _so = _servant_preinvoke( "list_measurement_jobs", _opsClass );
			if( _so == null )
				throw new org.omg.CORBA.UNKNOWN("local invocations not supported!");
			PMIRPOperations _localServant = (PMIRPOperations)_so.servant;
			PMIRPConstDefs.Result _result;
			try
			{
				_result = _localServant.list_measurement_jobs(job_list_d,job_info_list);
			}
			finally
			{
				_servant_postinvoke(_so);
			}
			return _result;
		}

		}

	}

	public PMIRPConstDefs.Result delete_threshold_monitor(int monitor_id) throws PMIRPSystem.UnknownThresholdMonitor,PMIRPSystem.DeleteThresholdMonitor,ManagedGenericIRPSystem.OperationNotSupported
	{
		while(true)
		{
		if(! this._is_local())
		{
			org.omg.CORBA.portable.InputStream _is = null;
			try
			{
				org.omg.CORBA.portable.OutputStream _os = _request( "delete_threshold_monitor", true);
				_os.write_ulong(monitor_id);
				_is = _invoke(_os);
				PMIRPConstDefs.Result _result = PMIRPConstDefs.ResultHelper.read(_is);
				return _result;
			}
			catch( org.omg.CORBA.portable.RemarshalException _rx ){}
			catch( org.omg.CORBA.portable.ApplicationException _ax )
			{
				String _id = _ax.getId();
				if( _id.equals("IDL:PMIRPSystem/UnknownThresholdMonitor:1.0"))
				{
					throw PMIRPSystem.UnknownThresholdMonitorHelper.read(_ax.getInputStream());
				}
				else if( _id.equals("IDL:PMIRPSystem/DeleteThresholdMonitor:1.0"))
				{
					throw PMIRPSystem.DeleteThresholdMonitorHelper.read(_ax.getInputStream());
				}
				else if( _id.equals("IDL:ManagedGenericIRPSystem/OperationNotSupported:1.0"))
				{
					throw ManagedGenericIRPSystem.OperationNotSupportedHelper.read(_ax.getInputStream());
				}
				throw new RuntimeException("Unexpected exception " + _id );
			}
			finally
			{
				this._releaseReply(_is);
			}
		}
		else
		{
			org.omg.CORBA.portable.ServantObject _so = _servant_preinvoke( "delete_threshold_monitor", _opsClass );
			if( _so == null )
				throw new org.omg.CORBA.UNKNOWN("local invocations not supported!");
			PMIRPOperations _localServant = (PMIRPOperations)_so.servant;
			PMIRPConstDefs.Result _result;
			try
			{
				_result = _localServant.delete_threshold_monitor(monitor_id);
			}
			finally
			{
				_servant_postinvoke(_so);
			}
			return _result;
		}

		}

	}

	public PMIRPConstDefs.Result stop_measurement_job(int job_id) throws PMIRPSystem.UnknownJob,PMIRPSystem.StopMeasurementJob,PMIRPSystem.JobCannotBeStopped
	{
		while(true)
		{
		if(! this._is_local())
		{
			org.omg.CORBA.portable.InputStream _is = null;
			try
			{
				org.omg.CORBA.portable.OutputStream _os = _request( "stop_measurement_job", true);
				_os.write_ulong(job_id);
				_is = _invoke(_os);
				PMIRPConstDefs.Result _result = PMIRPConstDefs.ResultHelper.read(_is);
				return _result;
			}
			catch( org.omg.CORBA.portable.RemarshalException _rx ){}
			catch( org.omg.CORBA.portable.ApplicationException _ax )
			{
				String _id = _ax.getId();
				if( _id.equals("IDL:PMIRPSystem/UnknownJob:1.0"))
				{
					throw PMIRPSystem.UnknownJobHelper.read(_ax.getInputStream());
				}
				else if( _id.equals("IDL:PMIRPSystem/StopMeasurementJob:1.0"))
				{
					throw PMIRPSystem.StopMeasurementJobHelper.read(_ax.getInputStream());
				}
				else if( _id.equals("IDL:PMIRPSystem/JobCannotBeStopped:1.0"))
				{
					throw PMIRPSystem.JobCannotBeStoppedHelper.read(_ax.getInputStream());
				}
				throw new RuntimeException("Unexpected exception " + _id );
			}
			finally
			{
				this._releaseReply(_is);
			}
		}
		else
		{
			org.omg.CORBA.portable.ServantObject _so = _servant_preinvoke( "stop_measurement_job", _opsClass );
			if( _so == null )
				throw new org.omg.CORBA.UNKNOWN("local invocations not supported!");
			PMIRPOperations _localServant = (PMIRPOperations)_so.servant;
			PMIRPConstDefs.Result _result;
			try
			{
				_result = _localServant.stop_measurement_job(job_id);
			}
			finally
			{
				_servant_postinvoke(_so);
			}
			return _result;
		}

		}

	}

	public ManagedGenericIRPConstDefs.Method[] get_pm_irp_operations_profile(java.lang.String pm_irp_version) throws ManagedGenericIRPSystem.InvalidParameter,ManagedGenericIRPSystem.OperationNotSupported,PMIRPSystem.GetPMIRPOperationsProfile
	{
		while(true)
		{
		if(! this._is_local())
		{
			org.omg.CORBA.portable.InputStream _is = null;
			try
			{
				org.omg.CORBA.portable.OutputStream _os = _request( "get_pm_irp_operations_profile", true);
				_os.write_string(pm_irp_version);
				_is = _invoke(_os);
				ManagedGenericIRPConstDefs.Method[] _result = ManagedGenericIRPConstDefs.MethodListHelper.read(_is);
				return _result;
			}
			catch( org.omg.CORBA.portable.RemarshalException _rx ){}
			catch( org.omg.CORBA.portable.ApplicationException _ax )
			{
				String _id = _ax.getId();
				if( _id.equals("IDL:ManagedGenericIRPSystem/InvalidParameter:1.0"))
				{
					throw ManagedGenericIRPSystem.InvalidParameterHelper.read(_ax.getInputStream());
				}
				else if( _id.equals("IDL:ManagedGenericIRPSystem/OperationNotSupported:1.0"))
				{
					throw ManagedGenericIRPSystem.OperationNotSupportedHelper.read(_ax.getInputStream());
				}
				else if( _id.equals("IDL:PMIRPSystem/GetPMIRPOperationsProfile:1.0"))
				{
					throw PMIRPSystem.GetPMIRPOperationsProfileHelper.read(_ax.getInputStream());
				}
				throw new RuntimeException("Unexpected exception " + _id );
			}
			finally
			{
				this._releaseReply(_is);
			}
		}
		else
		{
			org.omg.CORBA.portable.ServantObject _so = _servant_preinvoke( "get_pm_irp_operations_profile", _opsClass );
			if( _so == null )
				throw new org.omg.CORBA.UNKNOWN("local invocations not supported!");
			PMIRPOperations _localServant = (PMIRPOperations)_so.servant;
			ManagedGenericIRPConstDefs.Method[] _result;
			try
			{
				_result = _localServant.get_pm_irp_operations_profile(pm_irp_version);
			}
			finally
			{
				_servant_postinvoke(_so);
			}
			return _result;
		}

		}

	}

	public ManagedGenericIRPConstDefs.Method[] get_pm_irp_notification_profile(java.lang.String pm_irp_version) throws ManagedGenericIRPSystem.InvalidParameter,ManagedGenericIRPSystem.OperationNotSupported,PMIRPSystem.GetPMIRPNotificationProfile
	{
		while(true)
		{
		if(! this._is_local())
		{
			org.omg.CORBA.portable.InputStream _is = null;
			try
			{
				org.omg.CORBA.portable.OutputStream _os = _request( "get_pm_irp_notification_profile", true);
				_os.write_string(pm_irp_version);
				_is = _invoke(_os);
				ManagedGenericIRPConstDefs.Method[] _result = ManagedGenericIRPConstDefs.MethodListHelper.read(_is);
				return _result;
			}
			catch( org.omg.CORBA.portable.RemarshalException _rx ){}
			catch( org.omg.CORBA.portable.ApplicationException _ax )
			{
				String _id = _ax.getId();
				if( _id.equals("IDL:ManagedGenericIRPSystem/InvalidParameter:1.0"))
				{
					throw ManagedGenericIRPSystem.InvalidParameterHelper.read(_ax.getInputStream());
				}
				else if( _id.equals("IDL:ManagedGenericIRPSystem/OperationNotSupported:1.0"))
				{
					throw ManagedGenericIRPSystem.OperationNotSupportedHelper.read(_ax.getInputStream());
				}
				else if( _id.equals("IDL:PMIRPSystem/GetPMIRPNotificationProfile:1.0"))
				{
					throw PMIRPSystem.GetPMIRPNotificationProfileHelper.read(_ax.getInputStream());
				}
				throw new RuntimeException("Unexpected exception " + _id );
			}
			finally
			{
				this._releaseReply(_is);
			}
		}
		else
		{
			org.omg.CORBA.portable.ServantObject _so = _servant_preinvoke( "get_pm_irp_notification_profile", _opsClass );
			if( _so == null )
				throw new org.omg.CORBA.UNKNOWN("local invocations not supported!");
			PMIRPOperations _localServant = (PMIRPOperations)_so.servant;
			ManagedGenericIRPConstDefs.Method[] _result;
			try
			{
				_result = _localServant.get_pm_irp_notification_profile(pm_irp_version);
			}
			finally
			{
				_servant_postinvoke(_so);
			}
			return _result;
		}

		}

	}

	public PMIRPConstDefs.Result list_threshold_monitors(int[] monitor_id_list, PMIRPConstDefs.MonitorInfoListHolder monitor_info_list) throws ManagedGenericIRPSystem.InvalidParameter,ManagedGenericIRPSystem.OperationNotSupported,PMIRPSystem.ListThresholdMonitors
	{
		while(true)
		{
		if(! this._is_local())
		{
			org.omg.CORBA.portable.InputStream _is = null;
			try
			{
				org.omg.CORBA.portable.OutputStream _os = _request( "list_threshold_monitors", true);
				PMIRPConstDefs.MonitorIdListHelper.write(_os,monitor_id_list);
				_is = _invoke(_os);
				PMIRPConstDefs.Result _result = PMIRPConstDefs.ResultHelper.read(_is);
				monitor_info_list.value = PMIRPConstDefs.MonitorInfoListHelper.read(_is);
				return _result;
			}
			catch( org.omg.CORBA.portable.RemarshalException _rx ){}
			catch( org.omg.CORBA.portable.ApplicationException _ax )
			{
				String _id = _ax.getId();
				if( _id.equals("IDL:ManagedGenericIRPSystem/InvalidParameter:1.0"))
				{
					throw ManagedGenericIRPSystem.InvalidParameterHelper.read(_ax.getInputStream());
				}
				else if( _id.equals("IDL:ManagedGenericIRPSystem/OperationNotSupported:1.0"))
				{
					throw ManagedGenericIRPSystem.OperationNotSupportedHelper.read(_ax.getInputStream());
				}
				else if( _id.equals("IDL:PMIRPSystem/ListThresholdMonitors:1.0"))
				{
					throw PMIRPSystem.ListThresholdMonitorsHelper.read(_ax.getInputStream());
				}
				throw new RuntimeException("Unexpected exception " + _id );
			}
			finally
			{
				this._releaseReply(_is);
			}
		}
		else
		{
			org.omg.CORBA.portable.ServantObject _so = _servant_preinvoke( "list_threshold_monitors", _opsClass );
			if( _so == null )
				throw new org.omg.CORBA.UNKNOWN("local invocations not supported!");
			PMIRPOperations _localServant = (PMIRPOperations)_so.servant;
			PMIRPConstDefs.Result _result;
			try
			{
				_result = _localServant.list_threshold_monitors(monitor_id_list,monitor_info_list);
			}
			finally
			{
				_servant_postinvoke(_so);
			}
			return _result;
		}

		}

	}

	public ManagedGenericIRPConstDefs.Signal create_threshold_monitor(java.lang.String mo_class, java.lang.String[] mo_instance_list, PMIRPConstDefs.ThresholdInfo[] threshold_info_list, int monitor_granularity_period, org.omg.CORBA.IntHolder monitor_id, PMIRPConstDefs.MUnsupportedListHolder unsupported_list) throws PMIRPSystem.CreateThresholdMonitor,ManagedGenericIRPSystem.InvalidParameter,ManagedGenericIRPSystem.OperationNotSupported
	{
		while(true)
		{
		if(! this._is_local())
		{
			org.omg.CORBA.portable.InputStream _is = null;
			try
			{
				org.omg.CORBA.portable.OutputStream _os = _request( "create_threshold_monitor", true);
				_os.write_string(mo_class);
				PMIRPConstDefs.MOInstanceListHelper.write(_os,mo_instance_list);
				PMIRPConstDefs.ThresholdInfoListHelper.write(_os,threshold_info_list);
				_os.write_ulong(monitor_granularity_period);
				_is = _invoke(_os);
				ManagedGenericIRPConstDefs.Signal _result = ManagedGenericIRPConstDefs.SignalHelper.read(_is);
				monitor_id.value = _is.read_ulong();
				unsupported_list.value = PMIRPConstDefs.MUnsupportedListHelper.read(_is);
				return _result;
			}
			catch( org.omg.CORBA.portable.RemarshalException _rx ){}
			catch( org.omg.CORBA.portable.ApplicationException _ax )
			{
				String _id = _ax.getId();
				if( _id.equals("IDL:PMIRPSystem/CreateThresholdMonitor:1.0"))
				{
					throw PMIRPSystem.CreateThresholdMonitorHelper.read(_ax.getInputStream());
				}
				else if( _id.equals("IDL:ManagedGenericIRPSystem/InvalidParameter:1.0"))
				{
					throw ManagedGenericIRPSystem.InvalidParameterHelper.read(_ax.getInputStream());
				}
				else if( _id.equals("IDL:ManagedGenericIRPSystem/OperationNotSupported:1.0"))
				{
					throw ManagedGenericIRPSystem.OperationNotSupportedHelper.read(_ax.getInputStream());
				}
				throw new RuntimeException("Unexpected exception " + _id );
			}
			finally
			{
				this._releaseReply(_is);
			}
		}
		else
		{
			org.omg.CORBA.portable.ServantObject _so = _servant_preinvoke( "create_threshold_monitor", _opsClass );
			if( _so == null )
				throw new org.omg.CORBA.UNKNOWN("local invocations not supported!");
			PMIRPOperations _localServant = (PMIRPOperations)_so.servant;
			ManagedGenericIRPConstDefs.Signal _result;
			try
			{
				_result = _localServant.create_threshold_monitor(mo_class,mo_instance_list,threshold_info_list,monitor_granularity_period,monitor_id,unsupported_list);
			}
			finally
			{
				_servant_postinvoke(_so);
			}
			return _result;
		}

		}

	}

	public PMIRPConstDefs.Result suspend_threshold_monitor(int monitor_id) throws PMIRPSystem.UnknownThresholdMonitor,ManagedGenericIRPSystem.OperationNotSupported,PMIRPSystem.ThresholdMonitorAlreadySuspended,PMIRPSystem.SuspendThresholdMonitor
	{
		while(true)
		{
		if(! this._is_local())
		{
			org.omg.CORBA.portable.InputStream _is = null;
			try
			{
				org.omg.CORBA.portable.OutputStream _os = _request( "suspend_threshold_monitor", true);
				_os.write_ulong(monitor_id);
				_is = _invoke(_os);
				PMIRPConstDefs.Result _result = PMIRPConstDefs.ResultHelper.read(_is);
				return _result;
			}
			catch( org.omg.CORBA.portable.RemarshalException _rx ){}
			catch( org.omg.CORBA.portable.ApplicationException _ax )
			{
				String _id = _ax.getId();
				if( _id.equals("IDL:PMIRPSystem/UnknownThresholdMonitor:1.0"))
				{
					throw PMIRPSystem.UnknownThresholdMonitorHelper.read(_ax.getInputStream());
				}
				else if( _id.equals("IDL:ManagedGenericIRPSystem/OperationNotSupported:1.0"))
				{
					throw ManagedGenericIRPSystem.OperationNotSupportedHelper.read(_ax.getInputStream());
				}
				else if( _id.equals("IDL:PMIRPSystem/ThresholdMonitorAlreadySuspended:1.0"))
				{
					throw PMIRPSystem.ThresholdMonitorAlreadySuspendedHelper.read(_ax.getInputStream());
				}
				else if( _id.equals("IDL:PMIRPSystem/SuspendThresholdMonitor:1.0"))
				{
					throw PMIRPSystem.SuspendThresholdMonitorHelper.read(_ax.getInputStream());
				}
				throw new RuntimeException("Unexpected exception " + _id );
			}
			finally
			{
				this._releaseReply(_is);
			}
		}
		else
		{
			org.omg.CORBA.portable.ServantObject _so = _servant_preinvoke( "suspend_threshold_monitor", _opsClass );
			if( _so == null )
				throw new org.omg.CORBA.UNKNOWN("local invocations not supported!");
			PMIRPOperations _localServant = (PMIRPOperations)_so.servant;
			PMIRPConstDefs.Result _result;
			try
			{
				_result = _localServant.suspend_threshold_monitor(monitor_id);
			}
			finally
			{
				_servant_postinvoke(_so);
			}
			return _result;
		}

		}

	}

	public ManagedGenericIRPConstDefs.Signal create_measurement_job(java.lang.String mo_class, java.lang.String[] mo_instance_list, java.lang.String[] measurement_category_list, int granularity_period, int reporting_period, PMIRPConstDefs.IRPTimeOpt start_time, PMIRPConstDefs.IRPTimeOpt stop_time, PMIRPConstDefs.ScheduleOpt schedule, PMIRPConstDefs.JobPriorityOpt priority, org.omg.CORBA.IntHolder job_id, PMIRPConstDefs.JUnsupportedListHolder unsupported_list) throws PMIRPSystem.CreateMeasurementJob,PMIRPSystem.HighWorkLoad,ManagedGenericIRPSystem.InvalidParameter,ManagedGenericIRPSystem.ParameterNotSupported
	{
		while(true)
		{
		if(! this._is_local())
		{
			org.omg.CORBA.portable.InputStream _is = null;
			try
			{
				org.omg.CORBA.portable.OutputStream _os = _request( "create_measurement_job", true);
				_os.write_string(mo_class);
				PMIRPConstDefs.MOInstanceListHelper.write(_os,mo_instance_list);
				PMIRPConstDefs.MeasurementCategoryListHelper.write(_os,measurement_category_list);
				_os.write_ulong(granularity_period);
				_os.write_ulong(reporting_period);
				PMIRPConstDefs.IRPTimeOptHelper.write(_os,start_time);
				PMIRPConstDefs.IRPTimeOptHelper.write(_os,stop_time);
				PMIRPConstDefs.ScheduleOptHelper.write(_os,schedule);
				PMIRPConstDefs.JobPriorityOptHelper.write(_os,priority);
				_is = _invoke(_os);
				ManagedGenericIRPConstDefs.Signal _result = ManagedGenericIRPConstDefs.SignalHelper.read(_is);
				job_id.value = _is.read_ulong();
				unsupported_list.value = PMIRPConstDefs.JUnsupportedListHelper.read(_is);
				return _result;
			}
			catch( org.omg.CORBA.portable.RemarshalException _rx ){}
			catch( org.omg.CORBA.portable.ApplicationException _ax )
			{
				String _id = _ax.getId();
				if( _id.equals("IDL:PMIRPSystem/CreateMeasurementJob:1.0"))
				{
					throw PMIRPSystem.CreateMeasurementJobHelper.read(_ax.getInputStream());
				}
				else if( _id.equals("IDL:PMIRPSystem/HighWorkLoad:1.0"))
				{
					throw PMIRPSystem.HighWorkLoadHelper.read(_ax.getInputStream());
				}
				else if( _id.equals("IDL:ManagedGenericIRPSystem/InvalidParameter:1.0"))
				{
					throw ManagedGenericIRPSystem.InvalidParameterHelper.read(_ax.getInputStream());
				}
				else if( _id.equals("IDL:ManagedGenericIRPSystem/ParameterNotSupported:1.0"))
				{
					throw ManagedGenericIRPSystem.ParameterNotSupportedHelper.read(_ax.getInputStream());
				}
				throw new RuntimeException("Unexpected exception " + _id );
			}
			finally
			{
				this._releaseReply(_is);
			}
		}
		else
		{
			org.omg.CORBA.portable.ServantObject _so = _servant_preinvoke( "create_measurement_job", _opsClass );
			if( _so == null )
				throw new org.omg.CORBA.UNKNOWN("local invocations not supported!");
			PMIRPOperations _localServant = (PMIRPOperations)_so.servant;
			ManagedGenericIRPConstDefs.Signal _result;
			try
			{
				_result = _localServant.create_measurement_job(mo_class,mo_instance_list,measurement_category_list,granularity_period,reporting_period,start_time,stop_time,schedule,priority,job_id,unsupported_list);
			}
			finally
			{
				_servant_postinvoke(_so);
			}
			return _result;
		}

		}

	}

}
